-
Notifications
You must be signed in to change notification settings - Fork 7
add xpu op grouped topk #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
add xpu op grouped topk #10
Conversation
Signed-off-by: mayuyuace <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
benchmark/benchmark_grouped_topk.py
Outdated
start_time = time.perf_counter() | ||
|
||
for _ in range(num_iters): | ||
topk_weights, topk_indices = grouped_topk( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we do some benchmark among grouped_topk_native
, grouped_topk_native with @torch.compile
, grouped_topk
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
grouped_topk_native, grouped_topk_native with @torch.compile has been added.
add xpu grouped topk kernel